package com.easyadmin.pro.modules.sys.service.impl;

import com.easyadmin.pro.modules.sys.query.RoleQueryVo;
import com.easyadmin.pro.modules.sys.rest.RoleInfoResultVo;
import com.mybatisflex.spring.service.impl.ServiceImpl;
import com.easyadmin.pro.modules.sys.entity.RoleEntity;
import com.easyadmin.pro.modules.sys.mapper.RoleMapper;
import com.easyadmin.pro.modules.sys.service.IRoleService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *  服务层实现。
 *
 * @author xulin
 * @since 2024-04-02
 */
@Service
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class RoleServiceImpl extends ServiceImpl<RoleMapper, RoleEntity> implements IRoleService {

    private final RoleMapper roleMapper;

    @Override
    public List<RoleInfoResultVo> queryRoleInfos(RoleQueryVo roleQueryVo) {
        return roleMapper.queryRoleInfos(roleQueryVo);
    }
}
